package com.ybkj.daijia.server.mapper;

import com.ybkj.daijia.server.model.DriverLogin;
import org.apache.ibatis.annotations.Param;

public interface DriverLoginMapper {

    /**
     * @param record
     * @return
     */
    int insertRecord(DriverLogin record);

    /**
     * @param id
     * @return
     */
    DriverLogin selectByPrimaryKey(Long id);

    /**
     * @param driverId
     * @return
     */
    DriverLogin selectByDriver(@Param("driverId") Long driverId);

    /**
     * @param driverId
     * @return
     */
    DriverLogin selectByToken(@Param("driverToken") String driverToken);

    /**
     * @param driverLogin
     * @return
     */
    int updateTimeByPrimaryKey(DriverLogin driverLogin);

    /**
     * @param driverLogin
     * @return
     */
    int deleteByPrimaryKey(Long id);

    /**
     * @param id
     * @return
     */
    int addPasswordIncorrect(Long id);

    /**
     * @param id
     * @return
     */
    int addCodeIncorrect(Long id);

    int deleteByDriver(Long id);

}
